package model;

import java.util.Comparator;


/**
*Needed to sort elements of the lists
@Annot(author="maxim", description="Needed to sort elements of the lists")
*/
public class Compared implements Comparator<Storage> {

	public int compare(Storage o1, Storage o2) {
		return (o1.getId() > o2.getId()? 1 : (o1.getId()==o2.getId()? 0 : -1));
		}

	
	
}
